import request from "../utils/request";
type API<T = any> = (...args: T[]) => Promise<any>
//登录
export const loginApi: API<{ username: string, password: string }>= (body) => request("/login", {
    method: 'post',
    body
})